package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.HisContractDao;
import io.renren.entity.HisContractEntity;
import io.renren.service.HisContractService;



@Service("hisContractService")
public class HisContractServiceImpl implements HisContractService {
	@Autowired
	private HisContractDao hisContractDao;
	
	@Override
	public HisContractEntity queryObject(String id){
		return hisContractDao.queryObject(id);
	}
	
	@Override
	public List<HisContractEntity> queryList(Map<String, Object> map){
		return hisContractDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return hisContractDao.queryTotal(map);
	}
	
	@Override
	public void save(HisContractEntity hisContract){
		hisContractDao.save(hisContract);
	}
	
	@Override
	public void update(HisContractEntity hisContract){
		hisContractDao.update(hisContract);
	}
	
	@Override
	public void delete(String id){
		hisContractDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		hisContractDao.deleteBatch(ids);
	}
	
}
